Server Watch Plugin SDK Date: 6 Feb 2004
Release: 1.0
Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

ISWServerData.h

Go to the documentation of this file.
00001 /* 00002 ISWServerData.h 00003 Copyright (c) 2000-2004, Deep Fried Software. All rights reserved. 00004 */ 00005 00006 #if !defined(AFX_RUNTIMEDATAPLUGV1_0_0_H__FDF6EDA2_DE73_11D3_89EF_0040333C2E7E__INCLUDED_) 00007 #define AFX_RUNTIMEDATAPLUGV1_0_0_H__FDF6EDA2_DE73_11D3_89EF_0040333C2E7E__INCLUDED_ 00008 00009 #include "ISWPluginPane.h" 00010 #include <string> 00011 00012 #define RSD_OK 0 00013 #define RSD_TIMEOUT -1 00014 #define RSD_INCOMPLETE -2 00015 00016 //Icon non-number settings 00017 // -1 is used to say that the app just started 00018 #define ICON_UP -2 00019 #define ICON_DOWN -3 00020 00021 enum SWRESULT; 00022 00043 class ISWServerData 00044 { 00045 public: 00046 00096 virtual void BeginRead() =0; 00097 00099 virtual void EndRead() =0; 00100 00112 virtual void BeginWrite() =0; 00113 00120 virtual void EndWrite() =0; 00121 00132 virtual void Retain() =0; 00133 00140 virtual void Release() =0; 00142 00155 virtual SWRESULT SetServerName( std::wstring name ) =0; 00156 00165 virtual std::wstring GetServerName() const =0; 00166 00174 virtual SWRESULT SetMaxUsers( int users ) =0; 00175 00181 virtual int GetMaxUsers() const =0; 00182 00190 virtual SWRESULT SetTotalUsers( int users ) =0; 00191 00197 virtual int GetTotalUsers() const =0; 00198 00206 virtual SWRESULT SetAuxStat( std::wstring theStat ) =0; 00207 00213 virtual std::wstring GetAuxStat() const =0; 00214 00222 virtual SWRESULT SetStatusText( std::wstring theStatus ) =0; 00223 00230 virtual std::wstring GetStatusText() const =0; 00232 00268 virtual SWRESULT SetIconNumber( int num ) =0; 00269 00275 virtual int GetIconNumber() const =0; 00276 00284 virtual SWRESULT SetIconUp() =0; 00285 00293 virtual SWRESULT SetIconDown() =0; 00294 00302 virtual SWRESULT SetIconTip( std::wstring theTip ) =0; 00303 00309 virtual std::wstring GetIconTip() const =0; 00311 00332 virtual SWRESULT CreateTable( const std::wstring & strTableID ) =0; 00333 00340 virtual const bool TableExists( const std::wstring & strTableID ) const =0; 00341 00349 virtual const std::wstring & GetTableName( const std::wstring & strTableID ) const =0; 00350 00361 virtual SWRESULT SetTableName( const std::wstring & strTableID, const std::wstring & strName ) =0; 00362 00374 virtual SWRESULT SetUsersTableID( const std::wstring & strName ) =0; 00375 00384 virtual const std::wstring & GetUsersTableID() const =0; 00385 00395 virtual SWRESULT SetNumCols( const std::wstring & strTableID, int NumCols ) =0; 00396 00403 virtual int GetNumCols( const std::wstring & strTableID ) const =0; 00404 00416 virtual SWRESULT SetColHeaderTitle( const std::wstring & strTableID, int index, const std::wstring &title ) =0; 00417 00428 virtual SWRESULT GetColHeaderTitle( const std::wstring & strTableID, int index, std::wstring &title ) const =0; 00429 00442 virtual SWRESULT GetColDefaultWidth( const std::wstring & strTableID, int index, int &width ) const =0; 00443 00457 virtual SWRESULT SetColDefaultWidth( const std::wstring & strTableID, int index, int width ) =0; 00458 00470 virtual SWRESULT SetColWidthToDefault( const std::wstring & strTableID ) =0; 00471 00481 virtual int GetNumRows( const std::wstring & strTableID ) const =0; 00482 00492 virtual int GetNumRowsUncommitted( const std::wstring & strTableID ) const =0; 00493 00503 virtual SWRESULT ResetData( const std::wstring & strTableID ) =0; 00504 00514 virtual SWRESULT AddRow( const std::wstring & strTableID ) =0; 00515 00528 virtual SWRESULT SetData( const std::wstring & strTableID, int col, int row, const std::wstring &data ) =0; 00529 00544 virtual SWRESULT GetData( const std::wstring & strTableID, int col, int row, std::wstring &data ) const =0; 00545 00546 00562 virtual SWRESULT GetDataUncommitted( const std::wstring & strTableID, int col, int row, std::wstring &data ) const =0; 00564 00578 virtual SWRESULT InsertPane( ISWPluginPane* pane ) =0; 00580 }; 00581 #endif // !defined(AFX_RUNTIMEDATAPLUGV1_0_0_H__FDF6EDA2_DE73_11D3_89EF_0040333C2E7E__INCLUDED_)


Copyright (c) 2003-2004, Deep Fried Software. All rights reserved.